﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OMarketQualificationEdit.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.MacModel.OMarketQualificationEdit" %>
<style>
    p{
        border-style: dotted;
        border-width: 0 0 1px;
        clear: both;
        display: block;
        height: 1px;
        margin-bottom: 2px;
        overflow: hidden;
        padding: 2px 0 0;
        width: auto;
        border-color: #B8D0D6;
        width:340px!important;
    }
</style>
<div class="pageContent">
	<form id="Form1" action="MacModel/OMarketQualificationEdit.aspx?ajaxmethod=edit&MQID=<%=MQID %>" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone);">
    <div class="pageFormContent" layoutH="60"> 
        <table>
            <tr>
                <td width="365px">
                    <div class="panel" defH="170" >
                        <h1>需验证物料</h1>
                        <div>           
			            <p>
				            <label>物料号：</label>
                            <input type="text" name="ItemCode" value="<%=obj2.ItemCode %>" class="required autocomplete"  showinputid="OMarketQualificationEdit_Dscription" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getoitmlist&showtype=101" swidth="300"/>
			            </p> 
                        <p>
				            <label>名称：</label>
                            <input type="text" name="ItemName"  value="<%=obj2.ItemName %>" class="required" id="OMarketQualificationEdit_Dscription"/>
			            </p>          
                        <p>
				            <label>供应商：</label>
                            <input type="text" name="SupplerName"  value="<%=obj2.SupplerName %>" class="required autocomplete"   autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getsupplierlist" swidth="300"/>
			            </p> 
                        <p>
				            <label>旧件动态：</label>
                            <input type="text" name="OldItemStatus"  class=""  value="<%=obj2.OldItemStatus %>"/>
			            </p> 
                        <p>
				            <label>验证状态：</label>
                            <input type="checkbox" name="State"  class=""  value="true" <%=obj2.State?"checked":"" %>/>
                            (打勾表示正在验证)
			            </p> 
                        </div>
                     </div>

                      <div class="panel" >
                        <h1>验证调查说明(技术部)：</h1>
                        <div> 
                            <textarea name="VerifyRemark" style="width:95%;height:240px;"><%=obj2.VerifyRemark%></textarea>
                        </div>
                       </div>
                </td>
                <td valign="top" width="365px">
                    <div class="panel" >
                        <h1>验证机器相关信息</h1>
                        <div>    
                        <p>
				            <label>机型：</label>
                             <%=GetMacType("select", "MachineType", obj2.MachineType)%>
                
			            </p>
                       <p>
				            <label>机号：</label>
                            <input type="text" name="SerialNumber" class="" value="<%=obj2.SerialNumber %>"/>
                
			            </p>
                         <p>
				            <label>代理商：</label>
                            <input type="text" name="AgentName" class=""  value="<%=obj2.AgentName %>"/>
                
			            </p>
                        <p>
				            <label>客户名称：</label>
                            <input type="text" name="CustomerName" class=""  value="<%=obj2.CustomerName %>"/>
                
			            </p>
                        <p>
				            <label>手机：</label>
                            <input type="text" name="CustomerMobile" class=""  value="<%=obj2.CustomerMobile %>"/>
                
			            </p>
                        <p>
				            <label>安装日期：</label>
                            <input type="text" name="InsertDate" class="date"  value="<%=obj2.InsertDate %>"/>
                
			            </p>
                         <p>
				            <label>小时数：</label>
                            <input type="text" name="InsertHour" class=""  value="<%=obj2.InsertHour %>"/>
			            </p>
                </div>
                    </div>
                    <div class="panel collapse" defH="190" minH="190">
                    <h1>验证调查历史记录</h1>
                    <div>
                     <asp:repeater id="rpVerify" runat="server">      
                     <ItemTemplate>
                        <h2 style=" line-height:21px; border-bottom:1px solid #B8D0D6; color:Red;">第[<%# Eval("VerifyTime")%>]次调查</h2>
                        <table class="list" width="95%" style=" margin-bottom:3px;">
                            <tr>
                                <td width="80px" style="font-weight:bold;">调查时间</td><td><%# Convert.ToDateTime( Eval("SurveyDate")).ToString("yyyy-MM-dd")%></td>
                            </tr>
                            <tr>
                                <td style="font-weight:bold;">小时数</td><td><%# Eval("SurveyHour")%></td>
                            </tr>
                            <tr>
                                <td style="font-weight:bold;">状态</td><td><%# Convert.ToBoolean(Eval("SurveyState")) ? "正常" : "<b style='color:red;'>不正常</b>"%></td>
                            </tr>
                            <tr>
                                <td valign="top" style="font-weight:bold;">结果说明</td><td valign="top"><%# Eval("SurveyRemark")%></td>
                            </tr>
                        </table>
                     </ItemTemplate>
                     </asp:repeater>
                    </div>
                </div>
                </td>
            </tr>
        </table>
        
         
       
    </div>
    <div class="formBar">
   
			<ul>
				<li><div class="buttonActive"><div class="buttonContent">                 
                    <button type="submit">保存</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
       
	</form>
</div>